class MainController < ApplicationController
  layout "main"

#  before_filter :authenticate, :except => :index
  
  def index
    @lancamento = Lancamento.find(params[:id]) if params[:id]
    @lancamento ||= Lancamento.new
    @lancamentos = Lancamento.all(:order=>:data)
  end
 
end
